<?php

/**
 * Created by PhpStorm.
 * User: 快定
 * Date: 2021/9/18
 * Time: 14:05
 */

$conn = new Redis();
$conn->pconnect('127.0.0.1', '6379');
$order = [
    'id' => 1,
    'name' => '小米6',
    'price' => '2499',
    'create_at' => '2017-07-14'
];
$conn->publish('demo', json_encode($order));
